package com.zhdl.hardware_contact.hardware_config.service.impl;

import com.project.common.service.impl.BaseServiceImpl;
import com.zhdl.hardware_contact.hardware_config.entity.ProjectConfiguration;
import com.zhdl.hardware_contact.hardware_config.repository.ProjectConfigDao;
import com.zhdl.hardware_contact.hardware_config.service.ProjectConfigService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@Service
public class ProjectConfigServiceImpl extends BaseServiceImpl<Integer, ProjectConfiguration, ProjectConfigDao> implements ProjectConfigService {

    @Resource
    private ProjectConfigDao projectConfigDao;

    @Override
    public List<ProjectConfiguration> findAllByIds(List<Integer> ids) {
        return projectConfigDao.findAllById(ids);
    }

    @Override
    public List<ProjectConfiguration> getProjectConfigurationByworkplaceId(Integer workplaceId) {
        return projectConfigDao.getProjectConfigurationByworkplaceId(workplaceId);
    }

    @Override
    public List<ProjectConfiguration> getProjectConfigurationByValueType(Integer valueType) {
        return projectConfigDao.getProjectConfigurationByValueType(valueType);
    }


}
